/**
 * Created by Administrator on 2017/9/20.
 */
angular.module('module.set', [
        'service.set',
        'ngStorage'
    ])

    .config(['$stateProvider', function ($stateProvider) {
        $stateProvider
            .state('homepage', {
                url: '/homepage',
                templateUrl: set_view_url + 'homepage.html',
                controller: 'HomepageController',
                controllerAs: 'vm'
            })
            .state('main', {
                url: '/main',
                templateUrl: set_view_url + 'main.html',
                controller: 'MainController',
                controllerAs: 'vm'
            })
            .state('autoStart', {
                url: '/autoStart',
                templateUrl: set_view_url + 'autoStart.html',
                controller: 'AutoStartController',
                controllerAs: 'vm'
            })
            .state('version', {
                url: '/version',
                templateUrl: set_view_url + 'version.html',
                controller: 'VersionController',
                controllerAs: 'vm'
            })
            .state('news', {
                url: '/news',
                templateUrl: set_view_url + 'news.html',
                controller: 'NewsController',
                controllerAs: 'vm'
            })
            .state('news_edit', {
                url: '/news_edit',
                templateUrl: set_view_url + 'news_edit.html',
                controller: 'NewsEditController',
                controllerAs: 'vm'
            })
            .state('setTime', {
                url: '/setTime?timeingid&open&close',
                templateUrl: set_view_url + 'setTime.html',
                controller: 'SetTimeController',
                controllerAs: 'vm'
            })
            .state('setPay', {
                url: '/setPay',
                templateUrl: set_view_url + 'setPay.html',
                controller: 'SetPayController',
                controllerAs: 'vm'
            })
    }])